<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>非模块化方式使用</title>
    <link rel="stylesheet" href="../../layui/css/layui.css">
</head>
<body>
    <script src="../../layui/layui.all.js"></script>
    <script>
        //由于模块都一次性加载，因此不用执行 layui.use() 来加载对应模块，直接使用即可：
        ;!function(){
            var layer = layui.layer ,form = layui.form; 
            layer.msg('Hello World'); 
        }();
    </script>
</body>
</html>